package com.zwps.biz.dal.db.object;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 设备评级明细表
 * @TableName z_equipment_record_detail
 */
@TableName(value ="z_equipment_record_detail")
@Data
public class ZEquipmentRecordDetailDO implements Serializable {

    /**
     * ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 设备记录ID
     */
    @TableField(value = "record_id")
    private Long recordId;

    /**
     * 设备名称
     */
    @TableField(value = "name")
    private String name;

    /**
     * 设备型号
     */
    @TableField(value = "number")
    private String number;

    /**
     * 生产厂家
     */
    @TableField(value = "factory")
    private String factory;

    /**
     * 编号
     */
    @TableField(value = "identifier")
    private String identifier;

    /**
     * 评级单元 一类
     */
    @TableField(value = "one_grade")
    private Integer oneGrade;

    /**
     * 评级单元 二类
     */
    @TableField(value = "two_grade")
    private Integer twoGrade;

    /**
     * 评级单元 三类
     */
    @TableField(value = "three_grade")
    private Integer threeGrade;

    /**
     * 单项设备评定等级
     */
    @TableField(value = "rate_level")
    private String rateLevel;

    /**
     * 投入使用时间
     */
    @TableField(value = "use_time")
    private Date useTime;

    /**
     * 评级时间
     */
    @TableField(value = "grade_time")
    private Date gradeTime;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    @TableField(value = "parent_id")
    private Integer parentId;
    /**
     * 是否删除 0: 否 1: 是
     */
    @TableField(value = "is_delete")
    private Integer isDelete;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}